package com.example.demo.service.picture;

import com.example.demo.po.picture.Picture;
import com.example.demo.vo.picture.PictureVO;
import com.example.demo.vo.ResultVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface PictureService {
    ResultVO<PictureVO> uploadPicture(MultipartFile picture);

    void downloadFile(String originName, String newName, HttpServletResponse response);

    Picture getPictureByAddress(String address);

    void insertBugPicture(int bid,int pid);
}
